package com.lp.bean;

import org.codehaus.jackson.map.annotate.JsonSerialize;

import java.util.Date;
import java.util.Objects;

/**
 * @author thomas.he
 * @Description:
 * @date 2021/7/27 21:19
 */
@JsonSerialize(include = JsonSerialize.Inclusion.NON_NULL)
public class IotVisualMoudleInfo extends BaseBean {
    private Integer id;
    private String name;
    private String dis_img;
    private String description;
    private Object content;
    private Integer moudle_type;
    private Integer user_id;
    private Integer sys_flag;
    private Integer seq;
    private Integer aid;
    private Date atime;
    private Integer mid;
    private Date mtime;

    public Integer getId() {
        return this.id;
    }

    public String getName() {
        return this.name;
    }

    public String getDis_img() {
        return this.dis_img;
    }

    public String getDescription() {
        return this.description;
    }

    public Object getContent() {
        return this.content;
    }

    public Integer getMoudle_type() {
        return this.moudle_type;
    }

    public Integer getUser_id() {
        return this.user_id;
    }

    public Integer getSys_flag() {
        return this.sys_flag;
    }

    public Integer getSeq() {
        return this.seq;
    }

    public Integer getAid() {
        return this.aid;
    }

    public Date getAtime() {
        return this.atime;
    }

    public Integer getMid() {
        return this.mid;
    }

    public Date getMtime() {
        return this.mtime;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setDis_img(String dis_img) {
        this.dis_img = dis_img;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    public void setMoudle_type(Integer moudle_type) {
        this.moudle_type = moudle_type;
    }

    public void setUser_id(Integer user_id) {
        this.user_id = user_id;
    }

    public void setSys_flag(Integer sys_flag) {
        this.sys_flag = sys_flag;
    }

    public void setSeq(Integer seq) {
        this.seq = seq;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public void setAtime(Date atime) {
        this.atime = atime;
    }

    public void setMid(Integer mid) {
        this.mid = mid;
    }

    public void setMtime(Date mtime) {
        this.mtime = mtime;
    }

    public String toString() {
        return "IotVisualMoudleInfo(id=" + getId() + ", name=" + getName() + ", dis_img=" + getDis_img() + ", description=" + getDescription() + ", content=" + getContent() + ", moudle_type=" + getMoudle_type() + ", user_id=" + getUser_id() + ", sys_flag=" + getSys_flag() + ", seq=" + getSeq() + ", aid=" + getAid() + ", atime=" + getAtime() + ", mid=" + getMid() + ", mtime=" + getMtime() + ")";
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof IotVisualMoudleInfo)) return false;
        if (!super.equals(o)) return false;
        IotVisualMoudleInfo that = (IotVisualMoudleInfo) o;
        return Objects.equals(id, that.id) && Objects.equals(name, that.name) && Objects.equals(dis_img, that.dis_img) && Objects.equals(description, that.description) && Objects.equals(content, that.content) && Objects.equals(moudle_type, that.moudle_type) && Objects.equals(user_id, that.user_id) && Objects.equals(sys_flag, that.sys_flag) && Objects.equals(seq, that.seq) && Objects.equals(aid, that.aid) && Objects.equals(atime, that.atime) && Objects.equals(mid, that.mid) && Objects.equals(mtime, that.mtime);
    }

    protected boolean canEqual(Object other) {
        return other instanceof IotVisualMoudleInfo;
    }

    public int hashCode() {
        int PRIME = 59;
        int result = 1;
        Object $id = getId();
        result = result * 59 + (($id == null) ? 43 : $id.hashCode());
        Object $name = getName();
        result = result * 59 + (($name == null) ? 43 : $name.hashCode());
        Object $dis_img = getDis_img();
        result = result * 59 + (($dis_img == null) ? 43 : $dis_img.hashCode());
        Object $description = getDescription();
        result = result * 59 + (($description == null) ? 43 : $description.hashCode());
        Object $content = getContent();
        result = result * 59 + (($content == null) ? 43 : $content.hashCode());
        Object $moudle_type = getMoudle_type();
        result = result * 59 + (($moudle_type == null) ? 43 : $moudle_type.hashCode());
        Object $user_id = getUser_id();
        result = result * 59 + (($user_id == null) ? 43 : $user_id.hashCode());
        Object $sys_flag = getSys_flag();
        result = result * 59 + (($sys_flag == null) ? 43 : $sys_flag.hashCode());
        Object $seq = getSeq();
        result = result * 59 + (($seq == null) ? 43 : $seq.hashCode());
        Object $aid = getAid();
        result = result * 59 + (($aid == null) ? 43 : $aid.hashCode());
        Object $atime = getAtime();
        result = result * 59 + (($atime == null) ? 43 : $atime.hashCode());
        Object $mid = getMid();
        result = result * 59 + (($mid == null) ? 43 : $mid.hashCode());
        Object $mtime = getMtime();
        return (result * 59 + (($mtime == null) ? 43 : $mtime.hashCode()));
    }
}
